package com.ps.feign;

import com.ps.feign.impl.LeaveWordFeignImpl;
import com.ps.property.TUserMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author gt
 * @类说明：
 * @date 2020/10/27 19:21
 */
@FeignClient(value = "leaveWord-provide",fallback = LeaveWordFeignImpl.class)
public interface LeaveWordFeign {
    @PostMapping("/leaveWordAdd-provide")
    int leaveWordAdd(@RequestBody TUserMessage tUserMessage);

    @GetMapping("/leaveWordQuery-provide")
    List<TUserMessage> leaveWordQuery(@RequestParam("currentPage") int currentPage, @RequestParam("pageSize") int pageSize);

    @PostMapping("/leaveWordUpdate-provide")
    int leaveWordUpdate(@RequestBody TUserMessage tUserMessage);

    @GetMapping("/leaveWordQueryById-provide/{leaveWordId}")
    TUserMessage leaveWordQueryById(@PathVariable int leaveWordId);
}
